﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Media;
using xyz.stardance1993.CyberTheme.Utility;

namespace xyz.stardance1993.CyberTheme.Controls.Dark
{
    public class XButton:Button
    {
        public XButton()
        {
            UIBase.DefaultStyle<XButton>(DefaultStyleKeyProperty);
        }


        /// <summary>
        /// 图片来源
        /// </summary>
        public ImageSource Image
        {
            get { return (ImageSource)GetValue(ImageProperty); }
            set { SetValue(ImageProperty, value); }
        }

        // Using a DependencyProperty as the backing store for Image.  This enables animation, styling, binding, etc...
        public static readonly DependencyProperty ImageProperty =
            DependencyProperty.Register("Image", typeof(ImageSource), typeof(XButton), new PropertyMetadata(null));



        /// <summary>
        /// 图片与文字的位置布局
        /// </summary>
        public Orientation LayOut
        {
            get { return (Orientation)GetValue(LayOutProperty); }
            set { SetValue(LayOutProperty, value); }
        }

        // Using a DependencyProperty as the backing store for LayOut.  This enables animation, styling, binding, etc...
        public static readonly DependencyProperty LayOutProperty =
            DependencyProperty.Register("LayOut", typeof(Orientation), typeof(XButton), new PropertyMetadata(null));
    }
}
